package common;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import lombok.Data;

import java.io.Serializable;

/**
 * @author Anc
 * @date 2022/07/01
 */
@Data
@JsonPropertyOrder(alphabetic = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class PageParam <T> implements Serializable {

    private static final long serialVersionUID = -2892323390171154282L;

    /**
     * 查询页 页大小
     * */
    private int pageSize = 10;

    /**
     * 查询页 当前页
     * */
    private int currentPageNum = 1;

    /**
     * 查询条件
     * */
    private T query;
}
